package com.itheima.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.Pattern;
import java.util.Date;

/**
 * @Author a2687
 * @create 2021/9/13 16:03
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Items {
    private Integer id;
    private String name;
    private Float price;
    private String pic;
    //@Pattern(regexp="^[0-9]{4}-[1]{0,1}[0-9]-[123]{0,1}[0-9] [12]{0,1}[0-9]:[1-6]{0,1}[0-9]:[1-6]{0,1}[0-9]",message="创建日期格式不正确")
    private Date createtime;
    private String detail;

}
